d/test.sh: Line-buffer stdout
authorSimon McVittie <smcv@debian.org>
Sun, 18 Apr 2021 10:12:55 +0000 (11:12 +0100)
committerSimon McVittie <smcv@debian.org>
Sun, 18 Apr 2021 10:12:55 +0000 (11:12 +0100)
Otherwise, lines from stdout appear with an arbitrary delay, making it
hard to tell what the order of events was.

debian/test.sh

index d0dba67d5b965455a6cd0672dd8996665d0f2204..84242ffd63c63f062db8b0821152aa3588816820 100755 (executable)
@@ -14,7 +14,8 @@ unset https_proxy
 unset no_proxy
 
 failed=0
-make check || failed=1
+# Use line-buffering so stdout and stderr interleave somewhat nicely
+stdbuf -oL make check || failed=1
 
 pkill --full "gpg-agent --homedir /var/tmp/tap-test\\.[^/]+/.*" || :
 pkill --full '\.libs/ostree-trivial-httpd' || :